# -*- coding: utf-8 -*-

from gen_captcha import *

import matplotlib.pyplot as plt
import os

if __name__ == '__main__':
	# 测试
	text, image = gen_captcha_text_and_image()

	f = plt.figure()
	ax = f.add_subplot(111)
	ax.text(0.1, 0.9,text, ha='center', va='center', transform=ax.transAxes)
	plt.imshow(image)

	plt.show()